package org.wzl.todolisthelper.enumerate;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.wzl.todolisthelper.dto.CommonActionSheet;


import java.util.List;

@Getter
@AllArgsConstructor
public enum PeriodicTaskRepetitionCycleEnum {

    DAY(new CommonActionSheet("day", "每天")),
    WEEK(new CommonActionSheet("week", "每周")),
    MONTH(new CommonActionSheet("month", "每月"));

//    private final String code;
//    private final String desc;
    private final CommonActionSheet commonActionSheet;


    public static List<CommonActionSheet> getAll() {
        return List.of(DAY.getCommonActionSheet(), WEEK.getCommonActionSheet(), MONTH.getCommonActionSheet());
    }

}
